package lol.oxguy3.tabalicious;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import android.widget.Toast;

public class TabaliciousActivity extends Activity implements OnTouchListener {
	Context cxt;
	CharSequence toasttard = "YOU ARE IN THIS ACTIVITY!";
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        findViewById(R.id.linearLayout1).setOnTouchListener(this);
        cxt = this;
        
        Toast.makeText(cxt, toasttard, Toast.LENGTH_LONG).show();
    }

	public boolean onTouch(View v, MotionEvent event) {
        setContentView(R.layout.something);
        Intent tard = new Intent(cxt, SomethingActivity.class);
        tard.putExtra("shmextra", "3.14159265358979323846264338327950288419716939937510582097494459230");
        cxt.startActivity(tard);
        
		return true;
	}
}